package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 出库订单明细实体类
 */
@TableName("t_outOrderInfo")
public class OutOrderInfoBean {
    /**出库物品明细编号*/
    @TableId(value = "pk_outInfoId",type = IdType.AUTO)
    private Integer outInfoId;
    /**销售订单外键*/
    @TableField("fk_sellId")
    private Integer sellId;

    /**商品外键*/
    @TableField("fk_productId")
    private Integer productId;
    /**出库商品*/
    @TableField(exist = false)
    private ProductBean product;
    /**成交价*/
    @TableField("o_price")
    private Integer price;
    /**销售数量*/
    @TableField("o_sellNum")
    private Integer num;

    public OutOrderInfoBean() {
    }

    public OutOrderInfoBean(Integer sellId, Integer productId, Integer price, Integer num) {
        this.sellId = sellId;
        this.productId = productId;
        this.price = price;
        this.num = num;
    }

    public Integer getOutInfoId() {
        return outInfoId;
    }

    public void setOutInfoId(Integer outInfoId) {
        this.outInfoId = outInfoId;
    }

    public Integer getSellId() {
        return sellId;
    }

    public void setSellId(Integer sellId) {
        this.sellId = sellId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "OutOrderInfoBean{" +
                "outInfoId=" + outInfoId +
                ", product=" + product +
                ", price=" + price +
                ", num=" + num +
                "}\n";
    }
}
